import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";

const geistSans = Geist({
  variable: "--font-geist-sans",
  subsets: ["latin"],
});

const geistMono = Geist_Mono({
  variable: "--font-geist-mono",
  subsets: ["latin"],
});

// 设置元数据 用于SEO优化
export const metadata: Metadata = {
  title: "玛卡巴卡的个人博客",
  description: "玛卡巴卡的个人博客",
  authors: [{ name: "玛卡巴卡" }],
  keywords: ["玛卡巴卡", "个人博客", "技术分享", "前端"],
  robots: "index, follow",
  openGraph: {
    title: "玛卡巴卡的个人博客",
  },
};

// 根布局组件
export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="zh-CN">
      <body
        className={`${geistSans.variable} ${geistMono.variable} antialiased`}
      >
        {children}
      </body>
    </html>
  );
}
